package com.eleadmin.order.service;

import com.eleadmin.common.core.web.JsonResult;
import com.eleadmin.common.system.entity.User;
import com.eleadmin.damon.utils.results.PageResult2;
import com.eleadmin.order.entity.CustomerFactory;
import net.sf.json.JSONObject;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;
import java.util.Map;

/**
 * 工厂地址服务类
 * @author : Doman
 * @date : 2023-03-01 16:34:52
 * @version ：1.0
 */
public interface CustomerFactoryService {

    /**
     * 分页查询
     * @param page
     * @param customerFactory
     * @return
     */
    public JsonResult list(PageResult2<T> page, CustomerFactory customerFactory, User loginUser) throws Exception;

    /**
     * 获取list
     * @param customerFactory
     * @return
     */
    public JsonResult list(CustomerFactory customerFactory, User loginUser);

    /**
     * 根据Id查询
     * @param id
     * @return
     */
    public JsonResult getById(String id);

    /**
     * 保存
     * @param customerFactory
     * @param loginUser
     * @return
     */
    public JsonResult save(CustomerFactory customerFactory, User loginUser);

    /**
     * 修改
     * @param customerFactory
     * @param loginUser
     * @return
     */
    public JsonResult update(CustomerFactory customerFactory, User loginUser);

    /**
     * 删除
     * @param id
     * @param loginUser
     * @return
     */
    public JsonResult remove(String id, User loginUser);
}
